TARGET=$(shell basename `pwd`)
SOURCES=$(wildcard *.cpp)
OBJECTS=$(SOURCES:%.cpp=%.o)

CXXFLAGS+=-Wall -Werror -g

all: $(TARGET)

main.o: main.cpp lazy_str.hpp
lazy_str.o: lazy_str.hpp lazy_str.cpp

$(TARGET): $(OBJECTS)
	$(CXX) -o $(TARGET) $(LDFLAGS) $(OBJECTS) $(LOADLIBES) $(LDLIBS)

clean:
	$(RM) $(OBJECTS)

remake: clean all
